﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Pyramid.Models
{
	/// <summary>
	/// 管理中心
	/// </summary>
	public class AdminCenter
	{
		public int Id { get; set; }

		[Display(Name = "管理中心名称")]
		[MaxLength(20)]
		public string Name { get; set; }

		[Display(Name = "编码")]
		[MaxLength(20)]
		public string Code { get; set; }

		[Display(Name = "所属区域")]
		public int ZoneId { get; set; }

		[Display(Name = "成立日期")]
		public DateTime EstablishDate { get; set; }

		[Display(Name = "负责人")]
		[MaxLength(20)]
		public string Bosshead { get; set; }

		[Display(Name = "身份证")]
		[MaxLength(20)]
		public string BossheadIdCard { get; set; }

		[Display(Name = "建档日期")]
		public DateTime CreateTime { get; set; }

		[Display(Name = "建档人")]
		[MaxLength(20)]
		public string CreateUserId { get; set; }

		[Display(Name = "最后修改时间")]
		public DateTime EditTime { get; set; }

		[Display(Name = "最后修改人")]
		[MaxLength(20)]
		public string EditUserId { get; set; }

		[Display(Name = "登录账号")]
		[MaxLength(20)]
		public string UserId { get; set; }

		/// <summary>
		/// 所属区域
		/// </summary>
		public virtual MarketZone MarketZone { get; set; }
	}
}